fix js compilation