Changed constructor to allow custom browser