Moved the main code into a jQuery plugin called .mason()