Improved JS Code

Improved calculator, edited form html and css, and externalised
calculator JS code.