Syntax error on line 16: unpaired '{' .
    if (time % 30 == 0) {
