javascript reference file two folders up

JavaScript
//.. selects the parent directory from the current. Of course, this can be chained:

../../index.php
//This would be two directories up.
Source

Also in JavaScript: