better JS style
first draft to show on revisions