JavaScript module sample