converted threejs functions to angular services, replaced jquery animate with ngAnimate