move json search to assets/javascripts