javascript file with pseudo code