init.js, first approach. References #277.