Updated javascript and styling