We're all for responsive design techniques and also how sites display across different mobile devices and standard devices. Rather than adding scripts we've found the best way to target Devices is directly through CSS.

Target Mobile Devices and Other Standard Devices with CSS