Adding proper asset handling to the jGraph