I made a module that allows users to make graphs using the RGraph JavaScript library. It works great when there is only one instance of the module. However, if more than one instance is displayed, only the last module on the page works as intended. The rest will disappear the moment the user interacts with any of the graphs. Does anyone have any idea of why this is happening?