wrote js on html. corrected.
added and edited expressions on the scritp.js