Fixing js compilation