simple javascript calculator