javascript directory added to screenshot path