rewrote to use isolated scope
updated fatjs dependency