I think this widget shall fulfil your requirements. https://docs.mendix.com/appstore/widgets/html-javascript-snippet/ You can place local JS files in the theme directory of your project.