js compilation fixed