fixed the lodash library to work with require js even if the library is not loaded by require