To work Module.ccall you need to export ccall function (add it to exported methods array) in Engine\Platforms\HTML5\Source\Programs\UnrealBuildTool\HTML5ToolChain.cs (~473 line):
Result += " -s EXPORTED_RUNTIME_METHODS=\"['stringToAscii', 'ccall']\"";