move config.js main.js -> app.js
edit ajax url to '/'
check requireSession's data.code == 200