Detect IE versions in JS without conditional compliation