show defs/quizzes in top layer, divide js into basic objects