updated custom.js with relevent angularjs code