cleaning up tabfunction.js. Removing redundant function call