researched and tried more ways to load local file with angular.js and added another search event type