Some changes for jquery