Update source/templates_css_and_javascripts/javascript.rst

for a newbie to javascript it is unclear how to call the function in the script