module-specific javascript design