Use grunt-microlib for build tools. Refactor.
Use Karma for testing. Separate tests into multiple files.