HTML/JS setup for charging/payment