move mainApplication.js to fc-js