Moving dom manip from Play controller to player directive