An automagic instantiator for JavaScript components