Fix nested parens err in js