PI & Mash JavaScript module layout