at and getLength to work with mod.js