Added browser detection js