quick error checking

getjson.js was trying to split at the ~ which doesnt exist for all
demos.
did a check for it.