Testing production JavaScript code with Karma

This commit includes a task for Karma to test the production code that is
being generated by r.js.