fix a bug on JS module
Add some functions to JavaScript.Document
Merge pull request #404 from tetsurom/JSFix

JS fix
fix string replace bug
Merge pull request #406 from tetsurom/StringFix

fix string replace bug
update tests
add full test mode
move config.h.cmake => cmake/config.h.cmake