fm implementation of Spin.js in AngularJs directive