Custom require config for local javascript testing

Unsure about the best location for the file.

@jonnywyatt @andrewgarner @gjvis @benbarnett