Move hash runtime helpers into runtime.js
Move range runtime helpers into runtime.js