access-control-allow-origin header, better packaging