cmd.js, ajax fail handling
#38