Transfer classes into different JS file