JavaScript's missing range function.