p5.js is a library for graphical displays in the browser, it provides an easy to use interface for HTML5 Canvas. A lot of examples for 2D and 3D projects already exist. It also provides an interace for audio processing. Have a look at one of Lukas' projects to get inspired: http://lukas.uzolas.com/sinus/ .