Move phpunit tests to tests/phpunit
Add qunit tests for JavaScript