fixing errors on discution bot
javascript changes and some fix for content plugin