Changed conditional operators to === where appropriate.