added stats.js for basic gameloop profiling