document downloading of client javascript