Fix re-loading order profile when logging in during order process

- a few fixes for jslint warnings
- add sequence to project phase init data in tests
Hmm, the tests aren't running because we call this 'init_projects' function multiple times but 'sequence' must be unique.