If press each button, then load its JavaScript generated by JSX

The original code is hear.
Each JSX object is saved to JSXs object in the global scope:
e.g. JSXs["main"] is JSX object of main.js generated from main.jsx