Altered syntax.
Added external javascript file example.