Can you just load a sample script, such as the ESRI Buffer example, into jsfiddle and it will automatically separate the code into the proper components (e.g. HTML, CSS, and Javascript)? This is what I did with the example but all the code was placed in the HTML section and when I hit run, nothing happened.