Messing around with javascript module organization