Fixed 'warning' error and angular.element.find not supported by jqLite error.

Fixed error by calling 'warning' on ''. Should be 'warn'. Also changed angular.element.find(...) to document.getElementById(...) as AngularJS's jqLite does not support 'find'