 		chardata.goodness = $("#alignment").val().split(" ")[1]
 		console.groupEnd()
 	
-	align_html = []
-	align_html.push "<option id='deity_option_-1' data_id='' value=''></option>"
+	align_html = ""
+	align_html += "<option id='deity_option_-1' data_id='' value=''></option>"
 	$.each get_deities_for_alignment(chardata.alignment, chardata.goodness), (i, deity) ->
 		align_html += "<option id='deity_option_#{deity.name}' data_id='#{deity._id}' value='#{deity.name}'>#{deity.name}</option>"
 	
-	$("#deity").html align_html.join("")
+	$("#deity").html align_html
 	$("#deity").change ->
 		chardata.domains = []
 		$("#deity").trigger "DEITY_CHANGED"
 	
 	$("#language_table").html create_languages()
 	$("#languages").hide()
-	skill_html = []
+	skill_html = ""
 	skills.forEach (skill, i) ->
 		if skill.subtypes
 			skill_html += "<tr onclick=\"toggle_visible('#{skill.name}')\" bgcolor='#E2F0F9'><td colspan=3 style='vertical-align: middle;'><a class='fake_link' id='skill_#{skill._id}'><span id='#{skill.name}_expand_flag' style='float: right'><img src='images/collapsed.png'/></span>#{skill.name}</a></td></tr><tr id='#{skill.name}'><td colspan=3><table id='#{skill.name}_table' width='100%'style='border-collapse: collapse;'>"
 			for subtype of skill.subtypes
 				skill_html += "<tr><td style='vertical-align: top;'><a id='skill_#{skill._id}' class='fake_link' onclick='show_item_detail(skills, \"#{skill._id}\")' subtype='#{subtype}'>#{skill.name} (#{subtype})</a></td><td style='vertical-align: top;'><input id='skill_#{skill._id}_input' subtype='#{subtype}' class='two_digit' value='' onblur='recalc_edit_page()'></td><td style='font-size: xx-small; vertical-align: top;'>#{skill.ability}<br><span id='#{skill._id}_mods' style='font-size: xx-small;'></span></td></tr>"	if not chardata.skills or not chardata.skills.first(skill_name: skill.name) or not chardata.skills.first(skill_name: skill.name).subtypes[subtype]
-			skill_html.push "</table></td></tr>"
+			skill_html += "</table></td></tr>"
 			if chardata.skills
 				char_skill = chardata.skills.first(skill_name: skill.name)
 				if char_skill

	chardata.abilities = {}	unless chardata.abilities?
	race_html = create_select("race", races.get(), "recalc_edit_page()", false, "style='width: 75px;'")
	$("#race_select").html race_html
	align_html = []
	alignments.forEach (alignment, i) ->
		goodness.forEach (good, j) ->
			align_html += "<option id='alignment_option_#{alignment.name}_#{good.name}' data_id='#{i},#{j}' value='#{alignment.name},#{good.name}'>#{alignment.name} #{good.name}</option>"
	
	$("#alignment").html align_html.join("")
	$("#alignment").change ->
		console.group "deity - ALIGNMENT_CHANGED"
		align_html = []

edit = exports ? this
calc_skill_points =  ->
	int_score = $("#ability_Int").val()
	int_mod = calc_ability_modifier(int_score)
	is_human = races.first(name: "Human").name == $("#race").val()
