Create SearchWand.js

Javascript file containing all the functions