Update translate.js

Added that use method returns promise object