big modify to JS: adapt width + height size and vertical scroll abled