Basic setup and ajax structure