chnage metthod for js enqueue in footer