I have a problem with extjs 5 and Direct.
The same sample work's in extjs4 but not in 5.

when the /directapi return:

Ext.ns("ExtRemote");ExtRemote.REMOTING_API={"url":"http://localhost:8888/direct","namespace":"ExtRemote","type":"remoting","actions":{"DXHello":[{"name":"wave","len":1}],"DXHello.js.bak":[{"name":"wave","len":1}],"DXHello2":[{"name":"wave","len":1}],"DXHello3":[{"name":"wave","len":1}]}}Ext.ns("ExtRemote");ExtRemote.REMOTING_API={"url":"http://localhost:8888/direct","namespace":"ExtRemote","type":"remoting","actions":{"DXHello":[{"name":"wave","len":1}],"DXHello.js.bak":[{"name":"wave","len":1}],"DXHello2":[{"name":"wave","len":1}],"DXHello3":[{"name":"wave","len":1}]}}


and the console said:
TypeError: Ext.ns is not a function