The front-end part of token based authentication in AngularJS to NodeJS/Express