Implementing mrdoobs Eventdispatcher js class. Also modifying paths to be relative as project is under slash resume not root