Added exports.serve function for server usage without invoking the local browser

Create a new function exports.serve to exclude code that tries to activate a web browser (Chrome) locally