Plot function for JavaScript. Basically a wrapper for settings styles and stuff.