Can modules display HTML with JavaScript?

I want to create a module with a complex visualization. Is it possible to display it with HTML5 and JavaScript, say using something like D3.js or a more modern JavaScript viz package? Is JQuery available? What is there an approach to load CSS and JS files?