You need to put <script>-tags around the code snippet since the announcement bannner is using html.
Look at: https://gist.github.com/aheusingfeld/1723281 as an example
Beware: If you miss a tag you may lock up your entire instance! This method is not recommended in my opinion and should only be used for testing purposes.
if you get this problem!
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG