alert("/path/to/container/and/item".match(/.*\/(.+)$/)[1]);// shows "item", oralert(iwItem.getName().match(/.*\/(.+)$/)[1]);// shows AmID_639 or whatever