fix bug where non-live component would have it's JS not initialized