added javascript for chartifysearch