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