set up poltregiest for running JS tests