Move js to its own file
Separated JS into 2 files