completed html/javascript calculator