create download directory before downloading;
disable useless debug log;
fix a wrong index acess bug (copypasta); use a simple, but actually working wordsplit on space function;
don't claim mal creds are okay when no connection was established;
only forward requests that start with "/api/page/" to the active page; disable some debug output;
implement some communication between the mainpage and the js-controller;