2nd attempt to fix js compilation