Updates license header, fixes CommonJS compatibility