Additions for functions in Chrome, FF and IE