Added some neat jQuery functionality