Remove javascript and append js link to fotter