Closes #10 dropped requirejs and refactored code to match