#118026 by kkaefer with fixes from myself: JavaScript translation support and script.js as a default theme JS file to use, if found