Fixed js compilation