js syntax fix