Delete consumer.js

duplicate code