Add missing devDependencies.
Fix dependencies & move js testing stuff to src/test/js (REF #4046).