Change the way to get the browser width