Some refactoring of localizr grunt task