support for local basis.require in js resources