Main MetaSim.js