use javascript to handle IE10-11