Change exportedfunction to take parameters following browserify pattern