added arrow nav in the home screen, and moved js to a file