rewritten to class structure, imported modernizr test for pointer events