Changing angular code so that it doesnt break on minification in prod