verious code improvements for javascript and json. as welll as other code style improvements as i saw them
also improved error reporting from content bot.
Merge remote-tracking branch 'origin/jfusion2.0' into jfusion2.0