edited css class names to better follow conventions and refactored javascript again to avoid css attribute changes