Fixed #5 Added getInitWidgetsCode(asyncWriter) method