Added functionality so that if a library is already loaded it won't attempt to load it again. Fixing .ready function invocation if used on demand.