Clean up of code, resolves #1

While moving to bower dependencies and cleaning code with JsHint, I resolved issue #1