Simon: Slightly different js box count function