Interaction among theme component, theme javascript, and "previews"

…yeah, works purrfectly @david, thanks!