fixed file structure, began AJAX