Jquery Change Image Src Javascript Array Sort Method In Python