updated tpb.js to add a slugify function - also removed name normalize function as it's not needed