Enabling Javascript for Content Pages
By default, JEM does not allow JavaScript code on content pages. You need to set a config option in /system/application/config/config.php to allow it.
Change this line:
$config['content_enable_javascript_code'] = false;
to:
$config['content_enable_javascript_code'] = true;
If that line is not in your config file, just add it on its own line near the bottom of the file.
Save your config.php file.
Now, when adding Javascript code to your Content Pages, you may have to click on the 'disable HTML editor' link so you can copy and paste the correct javascript code onto your page. The built in HTML editor can sometimes conflict with other Javascript code, as the editor itself runs using JavaScript.
* Make sure it uploads correctly as JEM sets that file as read-only. You may have to change the permissions on that file first on your server before uploading and overwriting with the new one.
