Fixed handler initialisation and added print.js