Update tran.js

elementType initial value set to ''.