divide all js code to files