fixed the array creation for $deviceList
ajax response more readable with var_dump than Debug:dump
prepared a sample action for file download