adjust the base js code, so it can be used with webpack

silkapp/rest#81
add space between function name and params