split app_back.js, app_front.js
tidy up style in modules