better js to get columns