I am defining an object like this:
function Project(Attributes, ProjectWidth, ProjectHeight) { this.ProjectHeight = ProjectHeight; this.ProjectWidth
It is happening because you must have used another variable named "project" in your code. Something like var project = {}
var project = {}
For you to make the code work, change as follows:
var project = {} into var project1 = {}
var project1 = {}