Sets up javascript to take two inputs.