wrapping $ call in a ui.ready incase scripts are included at the bottom of the page.  We should probably not rely on jQuery though.