split js to separate file