angularjs, jquery and FSM libraries