Add frotel.js and fix crash on order