directive with js object other than link function only