JS in the right place for sizing grid of projects