textual edits. simplified example code a bit.
moved script tag to the bottom