Handy to have document.ready already set in main.js because jQuery.