added loadScript
added path functions
added path functions
changed promise, exposing it as class for extensibility
added mapObjKeys