fix most jshint errors
refactor angular namespaces