renamed search.js to functions.js

-added individual javascript to each page on load
-began server loading implementation