added trajectory.js