upload js version of main script