Replace jQuery calls with appropriate methods and libs