basic js search- still needs more work to be fully dynamic in number of search terms and to be converted to coffeescript