Crypsis : Convert some script to jQuery