init.js: helpers and limit