Merge pull request #23 from verse/javascript

javascript - added tests with Jasmine
Small refactoring
javasript - requirejs for module dependencies handling