Solved validation errors with MDN.

Moved onClick events from inline (which caused the security loopholes) to a seperate input.js file. Added the input.js file in the body element of index.html.