split code in several js (one per class)