[CoderGraph#New] Refactored JS into objects