using ng-cloak to avoid displaying template info on load. cleaing up javascript.