Sample application JS modularization