splitting browser code