a simple javascript calculator