diff --git a/src/sbbs3/js_console.cpp b/src/sbbs3/js_console.cpp
index 954a310836b4fb76b8982e324340eee9b6108c10..26fb72ce97de4b7429b9441b3956be6dd38324e4 100644
--- a/src/sbbs3/js_console.cpp
+++ b/src/sbbs3/js_console.cpp
@@ -1733,8 +1733,8 @@ static jsSyncMethodSpec js_console_functions[] = {
 	,JSDOCSTR("get a string based on template")
 	,310
 	},		
-	{"ungetstr",		js_ungetstr,		1, JSTYPE_VOID,		JSDOCSTR("")
-	,JSDOCSTR("put a string in the keyboard buffer")
+	{"ungetstr",		js_ungetstr,		1, JSTYPE_VOID,		JSDOCSTR("keys")
+	,JSDOCSTR("put a data (e.g. a string of characters) in the keyboard input buffer")
 	,310
 	},		
 	{"yesno",			js_yesno,			1, JSTYPE_BOOLEAN,	JSDOCSTR("question")
diff --git a/src/sbbs3/js_file.c b/src/sbbs3/js_file.c
index e110d08056d6e957e277457e6a82e008b9d35c1b..0f3a789576fbbe29c3c171ba2ede40af26fabdd9 100644
--- a/src/sbbs3/js_file.c
+++ b/src/sbbs3/js_file.c
@@ -2666,7 +2666,8 @@ static jsSyncMethodSpec js_file_functions[] = {
 	,317
 	},
 	{"write",			js_write,			1,	JSTYPE_BOOLEAN,	JSDOCSTR("text [,length=<i>text_length</i>]")
-	,JSDOCSTR("write a string to the file (optionally unix-to-unix or base64 decoding in the process)")
+	,JSDOCSTR("write a string to the file (optionally unix-to-unix or base64 decoding in the process). "
+		"If the specified <i>length</i> is longer than the <i>text</i>, the remaining length will be written as NUL bytes.")
 	,310
 	},
 	{"writeln",			js_writeln,			0,	JSTYPE_BOOLEAN, JSDOCSTR("[text]")