move gotobuy function to html