replaced $.browser by window.navigator method as $.browser has been removed in jQuery1.9