new js file

for search dialog box *still under construction*