added some semicolons and fixed html 'warnings'
placeholders for names is now updated when adding nodes