calculator js fix