Set up js for trails file