Fixed all issues

Hi Fred,

I had a play with your repository, and managed to get it working. Accept this pull request to see how I did it.

I also changed the way you use bower. Be sure to run `bower install` in the app directory to get all the packages. (I think that is how bower works).

Yours sincerely,

Greg Lockwood

I'm using an [IIFE](http://benalman.com/news/2010/11/immediately-invoked-function-expression/) to make sure the `app` variable doesn't pollute the global scope.