Fix bad js syntax