Separate js files according to its responsabilities