Suppress api webpage

i have the web controlled led tutorial running

when a command is issued from the web page i created a new page is opened

how do i prevent this , it has the access token and device id