Renamed timeout parameter to interval and fixed npm warning