Moved contains_id function into new file (helper_fns.js)