updated example code, added dependencies and ignore files to bower.json