Update trial.js