Injecting JavaScript into a Post with WP3.x

If I am not mistaken about the issue – that is controlled by unfiltered_html capability. Only available to Editor role and higher by default.