My usual way to get something to work with Tridion is to first develop it without Tridion.
Start by saying that your application runs on IIS or Tomcat, or what you use for your delivery platform.
Once you are satisfied with this, start moving it to Templates. In your particular case, I assume that this functionality is something that editors can add to pages, so the component template makes sense. Make sure that the output of your template contains all the code you need (including any controls, javascript links, etc.), and everything in your output that may require customization should be in the component associated with this template.
Remember that you can publish something from Tridion, you should focus on making it work, and then adapt your Tridion templates.
Repeating your question, it seems that you are stuck in the very basics of Tridion ... Yes, you can use RenderComponentPresentation, just make sure that the component template creates the necessary code on the delivery side.
Nuno linhares
source share