jQuery idiomatic way of doing this:

$(function() {
   // Move the code from Init into here including variable declaration

});