Add some javascript utility functions like getting the service list, preallocate, finish and upload metadata.