Support Javascript cross-domain CURD with REST