fist attempt at connecting api to web page