add module init structure with Parley.onInit function