Add documentation
Feature detection: use native methods in browser isn't broken.