Clean up Thepiratebay.js 's unused directives and debug logging