fix enchant js