added checking for browser features