expose layout api method (closes #305), consistent spacing across all functions in core JS, remove unused each() method