Replaced javascript hack with actual proper django template coding.
(to fix the repetition problem when displaying sections)

Signed-off-by: Phohawkenics <leolanuzo@gmail.com>