Copied in WordPress js file.