I'm not sure why ```$(function() {   });``` was there in the first place. It might have been for namespacing a section of code