Create detect-ie.js

Added initial code