Update tran.js

Removed the bug where the last element was not getting translated correctly.
Modified the code to include all input types.
Update tran.js

elementType initial value set to ''.
Merge pull request #1 from akvgit/master

Changes to transjs to handle all HTML elements except drop down list. A better algorithm is implemented by Arun KV.