add grunt-contrib-watch
fix search_type in case it is not defined