JavaScript: Replace an existing file

Replaces an existing file at the specified path with a new one.

Parameters