Removed element.scope() calls by using the scope which we compile with

Makes ngDialog work with AngularJS 1.3 when $compileProvider debug info is disabled ($compileProvider.debugInfoEnabled(false)).