fix an error in the js plugin template and remove an extra floating console.log from the main binary