Update init mechanism

Async load js after init and add fail alert