added some JS.

changed the folder structure