Changed errorlabels.js to php