Update range_check.js

Moved inline requires to top for much better performance in high volume calls.