Factor out Scramble API browerify module