Composition With Javascript