I write PHP inside JS in the following way
alert();
echo__(\"Error-login\") correlates with
echo__(\"Error-login\")
try this
confirm("Do you want this?");'; ?>