Change triple equals in javascript