this should not be here
make check_is_valid.js correctly handle relative paths