Fix requires in javascript files and activate update-locale trigger