#6 fixed. The 'Create' function was giving two returns of ' echo formatJSEND(success,array(name=>->name,path=>->path));' so the Javascript got an error 'Unexpected { ', just left one of the returns and it's working.