Export DIR for spec_helper.rb. Execute wait.js to wait for test_server.js to be ready.