use === and !==, replaced array notation by dot notation, removed some unecesary ;