Forgot document type in the JavaScript example