Experiment into a highly decoupled JavaScript validator