fixing var declarations in client-side model too pt.3