Keep to JS style! It should be `function getRegionParams(startTime,` (no space between getRegionParams and following bracket).