Your script is running before your demo para is loaded
so it's looking for an id that does not yet exist.
try placing your script to just before closing body tag
Ask not what can I do for myself, but what can I do for others
"The greatest revenge is to accomplish what others say you cannot do."
I used to be indecisive, but now I'm not so sure.