Fixed a bug in the cleanup script. Javascript is fun. No, really.
merge