jquery 1.9 support

Added support for jquery 1.9: the browser object was deprecated in jquery in v1.3, removed in v1.9.