mu2duk: clearer wrapper with JS_C_FUNC
pr1351: simplified file functions