JS framework for rotating pinwheel game