added admin panel; moved js code to separate folder