amd javascript library for detecting browser features