[backends/jscommon] Fix disposing app