Connected quiz with registration, moved js to other file