Topic/replace tabs new

JavaScript for replaceTabs