You'll still need a ``$(function () { ... });`` to wrap all this code to make sure the DOM is ready. Also I'd recommend fixing the different spacing you have - we've been going with a 2 spaces indentation style.