fixes for javascript GoL