Javascript class to get information about mobile devices.