changes angularjs local setting with requirejs