changed == to === to adhere to good javascript practices