Generic framework for instantiating JavaScript component based on whether they are found in the markup.