Update class.php

Added checkbrowser function