Vanilla JS detection module.