Add test_trail.js, adapted from test_trail.rb