changed js script double equals comparisons to triple equals to promote data integrity