Create SearchDirectory.js

main JS file