Confirmed, JavaScript is no longer allowed in sidebar components as of the Summer '14 release. You must embed your JS in a Visualforce page or onclick button.
This is discussed in detail on this other Stack Exchange thread:
End of javascript sidebar workarounds? (Salesforce Classic / Aloha)End of javascript sidebar workarounds? (Salesforce Classic / Aloha)