js translate in one script, fix error authenticating user