Reconfigurable micro composition system for JavaScript