added js request validation, added ability to only dispatch a few requests