Adress some of the issues in the dynamic error js

Some general tweaking ... should have address these as well

https://github.com/elkarte/Elkarte/issues/203
https://github.com/elkarte/Elkarte/issues/197
https://github.com/elkarte/Elkarte/issues/172