Moved FSM to javascript woooo
PostMessage bridge working.