better js organization