[backends/jscommon] Implemented app dispose