got rid of all the JS nested arrays.  runs a bit smoother now.