moving js code away from index.html