Update NametagBasic.js

bugfixes for GUI events (backspace), html escape codes, include percent amp for xml content and fix for ampersands in javascript introduced by the htmlSerializer.