[tests] Move test files to subdirs
[tests] Added js test
[backends/jscommon] Properly finalize application
[backends/jscommon] Added missing argument in document dispose