A simple calculator written in javascript