Remove references to console in scripts