move signal initialization to javascript scope
fixed a bug that failed to initialize dbus