Moving event to init.js