I ran into an issue using the console.log with IE. Described here:
http://stackoverflow.com/questions/7742781/why-javascript-only-works-after-opening-developer-tools-in-ie-once
I have removed the lines from the sample code in my response above.
http://stackoverflow.com/questions/7742781/why-javascript-only-works-after-opening-developer-tools-in-ie-once
I have removed the lines from the sample code in my response above.