Playing with the functionality of jQuery