.js formatting and graph interval revision