refacotr compiler based on enyo, seajs