use browserify pipeline splicing to attach extra behaviour