PureMVC Native JavaScript Finite State Machine