Fix js syntax