Dont include closing > in search for closing script
Merge pull request #2089 from jsbin/fix/2068

Dont include closing > in search for closing script