Move js from html to js file + /userInfo REST service
Refactor