Added more sleep time to the watch restart
Commented the second test, it is not important but should work though, manually it works but programmatically the
server http var is undefined when file is changed ?!