adding instructions for JavaScript. I don't know graffle, so I kept the code simple