Update main.html

link directory.js

add temp button to call directory()
Add directory.js