Project.js code cleanup