== replaced by === for client-side js