Js decoupling