Updated for removed .live() function in jQuery 1.9