corrected require js and fixed EventTypes