reboot JS approach