added js function nuFile() and simplified nufileget.php