work around for the $.browser bug in Chrome in Snippet.js