Tidy
Add appVer
Change to $root scope
Remove script / map
Add dependency function
Add dependency injection