fixed up javascript to match design changes