changed back from jsp need to add user logic to main.js