JS moved to footer and AJAX content