insane js module pattern (working name)