simplified the example and added a jQuery.ready one