Add JS for dynamic generation of single plans