Global variables fixing

avoid implicitly variables declaration and fixing "use strict" mode
but where is textAngularSetup variable used? All this stuff could be changed with angular's $provide, as I can see. So do we really want to leave unnecessary global variable?