FunctionScript — Turn JavaScript Functions into Typed HTTP APIs