Users roles, updated JS libraries, and a little code clean-up