fixed js syntax