Corrections to the init.js using jQuery