Machan
This might be too late. But there are few ways you can insert javascript in a Joomla article.
1. Disable the editor. Insert the javascript in the plain html view and save the article.
2. Install an editor like JCE which allows javascript. (TinyMCE, the default editor strips off <script> tags when the article is saved.
3. Use a module like mod_html (by fijiwebdesign) to insert javascript. Then call it using {loadposition()} from the article.
Hope this helps.