Move cell size menu UI code to new JS file