change method for js enqueue in header