Update featureService.js

do:

var flags = featureService.setflags(); 
in platform.js