use gulp-inject to move js file references into gulpfile

- Better userState existential test
- Get rid of unused userState dependencies