close modal on registration, annoyingly change single quotes to double quotes in index template