calculator in native javascript