Fixed js error: E_TOO_MANY_BRACES_AND_PARENS