almost done untangling the code
add js folder