Corrected Javascript equals to use non-conversion comparison (identity).