removing legacy js code dependant on post_content