added responsiveness with js