improved naming in sample docs.js