adding simple json error because of access-control-allow-orgin error.