js modules and patterns homework