Added some cross-browser support
Added fail message for IE