mistake where I ignored boolean vals in js output