Notes on document.ready vs. window.onload and Controller basics