move js to separate module