initial frontend js, added map for debugging, no api login success check yet