take out console.log, fix broken script reference, anonymize functions