modify $ to window.$