built main script, cleaned up html and stylesheet