fixed trash image path and js_init_call problem