JavaScript: Check if file exists

Checks the existence of a file.

Parameters