doctype declaration and updated cors api