Adding the stopRecording function to phonegap plugin