PureMVC JavaScript Utility: State Machine