fixed javascript resizing on small screens