updated custom.js with relevant angularjs code