editing for js syntax