Removed "internal" directory and replaced jQuery AJAX and template rendering with a helper function.