updates JS script for smoother html block collapse/expand

Signed-off-by: portamx <support@portamx.com>