That makes sense. If you think we are going to use it, keep it here. Either way, all of this should go in a closure (I think there's no need to use $(document).ready).