upload javascript pgm