document ready function, but leave your document ready function itself intact.
document ready function.
    testString: assert(code.match(/\{\s*\}\);/g));
  - text: You should leave your script element intact.
    testString: assert(code.match(/