Since javascript works in client browser, applicationresources.properties is in server.
If you are using struts you can use bean:message tag to retrieve the i18n string as following in javascript.
var criteriaRequire = "<bean:message key="error.0044" />";
alert(criteriaRequire);