[GTK] Use custom JavaScript instead of DBus to implement WebProcess tests