javascript and design changes