use === and !==, reverted to dotnotation , removed some unecesary ;