Rewrote assignment in jQuery