moved JS to main folder

simplifies editing