poor man's main.js