Javascript for IE compatible mode detection