Clean up javascript a bit and use bower to manage libraries
Update ignore for bower.