Added Test using PhantomJS, Karma, JSHint, Mocha, and Chai