add std license header and placate jslint