better test for onEnter
looking for trailing commas and gettin' them