add files_controller.can return file json to client
remove the poltergeist driver
get the returned file with json format
extract to method for ajax_get_file