Scope retrieved from $rootElement instead of <head>

Swapped retrieval of scope from head to $rootElement.
It removes requirement of angular app being initalized on <html> tag