If you are using Joomla Content Management System you might find yourself stuck in TinyMCE editor with its limited capabilities. If you wish to parse a Javascript code in your content you might have to turn off the editor this is a tedious job in TinymCE but when you are using JCE all you need to do is follow this simple steps to parse Javascript code
Click on the Show/Hide editor > hide > insert js> click apply> click show/hide > show > save