Repaired js syntax