changes to some javascript and layout/css