update and set up directory for angularjs