move js in slider extension