The Reusable part to be used is coded as normal. The properties events and methods can be accessed from JavaScript directly. No additional coding within the reusable part is necessary.