reorganize JS files