Added some tests using Jasmine
Added uglification. Should add linting too.
Made sure an API key is provided.