Minimalistic JavaScript class for handling touch screens in multiple browsers