refactored js back to pdb.js, working on code to add new tags