Update transitions.js

initialize instance variable during initialization.