moving js out of html files and making sure that cards are removed when snoozed