cleaned up styles and js syntax