Better code structure, js-code divided into several files