JS (Canvas) - range()