html and js for first table