add init support for auto js loading