js syntax fixed