Instade of writting directly on page, you can do this things.
1. Open that CMS Page.
2. Open the "Design" tab from sidebar.
3. There are you get options like "Layout Update XML"
4. Into this field you are able to add Css and Js file for specific CMS Page only.
<reference name="head">
<action method="addItem"><type>skin_js</type><name>js/your_foldername/your_js_name.js</name></action>
<action method="addItem"><type>skin_css</type><name>css/your_foldername/your_css_name.css</name><params/></action>
</reference>
And you need to write yiour code into your Css/Js file.