cleaned up codes. single quotes, indents, hasOwnProperty checks, strict equals