archive: use camelCase in js function names