Cordova-plugin-camera plugin shows as undefined

I installed cordova-plugin-camera like it stands in the documentation.

meteor add cordova:cordova-plugin-camera@5.0.1

Then I was trying to log like below code:

if (Meteor.isCordova){
    document.addEventListener("deviceready", onDeviceReady, false);
    function onDeviceReady() {
      console.log(,"cam object");

and the log message shows that the camera object as undefined
also tried version 1.2.0 for cordova-plugin-camera, but not worked for me.