A simple javascript based calculator