Op minor refactor

Minor refactoring. All tests pass. Moved javascript from views to initialize.js. Fixes web-font links