JS piece complete for o/s checkbox