Update transition.js

refactoring shader