moved js into separate folder, fixed redirects

see summary