Small change to JS structure.
Merge pull request #679 from code-dot-org/printing-patch

Small change to JS structure.