Base trajectory.js file