Added some more detailed css
Removed inline js and edited html structure
New js to handle errors
Put the js code in its own folder

Also added better event listener