These are a collection of code snuppets I've used in the past and I think, these may help or inspire you as well.
Embed 3D models in your web page
Show what you are listening to