Enhance support of Javascript + Tests
Stronger asserts on existence of files in tests

Also tests are more relying on the API and not the internal logic
Trying to follow PEP 8 : shorter lines