Removed non-performant wait for jquery