compatibility with FF, IE10, Chrome