split angularJs controller