added feature-detection but still not working in ie, require looks unsupported
feature detection done right