Update translate.js

Added debugging stuffs now.