[fix][js] Module init

* JS module init is now called exclusively to the is_ready() status