Responsive javascript based web controls