fixed the flagged issues, unified the project.js and track.js identical sanitization