angularjs, jquery and FSM libs