removed unused code (including all counts code), replaced featureTest to modernizr