Fixed bug in project.js if statement