Detect IE versions in JS without conditional compiling