[js] Upgrading jQuery and adjusting the fadein logic