completed refactor; created main.js for development