Ready wrapper

Just chucked this. Please review. All of our JS event handlers need to be ready for after the page loads.