a script to detect browser and device for mobile applications to enable responsive design