CURRIKI-6057 Discussions: fixed js issues after html changes