JS Console code for frontend, finished UI.