sub.js subscriber sample added