JavaScript missing semicolon