Webworks call to head

Moved js webworks call to head from body.  The body sometimes may not
get called