Put the javascript inside an HTML comment and you shouldn't have to escape any square brackets.
- tye