Interactive Online Calculator in Javascript