splitting things up with AMD and preparing Jasmine and Karma for testing