Add in error-handling to get-similar.js.