added support for javascript in posts