Calculator in native js