added javascript for responsiveness