Base life-cycle feature for JS apps.