Avoid DOM queries inside module

Change-Id: Ifd98c29237909b4aedf6019dd37bdf5e5c93a598
Separate event handlers from rendering

Change-Id: I11a24f39db79f7881fb0f8abe77cc207d97b46ef
Consistent formatting

Change-Id: I35740ce7fce4392efce440306c563e049191cfc5
Merge "Avoid DOM queries inside module"
Merge "Separate event handlers from rendering"
Merge "Consistent formatting"