fix a bug on JS module
Add some functions to JavaScript.Document