Modified to load scripts in a specific order based on dependencies in
JSP:include tags.