refactored the angularScripts file
debugging
minor updates