Cleaned up html and js. Added js to own file.