Replace jQuery with $ inside the closure