Adding stats.js and modifying main