(JavaScript) Ignoring numbers if > 1000.