Stop WordPress removing tags when switching from HTML to Visual (TinyMCE)

Adding JS to the content is very, very bad practice, and it’s just asking to be hacked.

Add it via a shortcode, or if you really must, use a post meta/custom fields to store the js and display it after the content in your template using echo get_post_meta($post->ID,'post_javascript',true );