Bugfix of syntax error js