updated scrap.js

adding missing range function, now works as expected