tweaking the new summary js, still not working correctly