Images to jpg and updated jQuery