From http://stackoverflow.com/questions/8383742/keeping-toggled-class-after-page-refresh