enchant js fix