 	skill_link = $("a[id='skill_#{skill._id}']#{if subtype then "[subtype='#{subtype}']" else ""}")
 	skill_link.attr "style", "font-weight: bold;"	if skill_link and class_skill
 
-edit.update_race_mods = ->
+update_race_mods =  ->
 	race = races.first(name: $("#race").val())
 	if race
 		for ability of abilities
 			mod = (if not race.abilities[ability]? then " " else race.abilities[ability])
 			$("#race_#{ability}_mod").text pos(mod)
 
-edit.update_language = (language_id) ->
+update_language =  (language_id) ->
 	checked = $("#language_#{language_id}_check").attr("checked")
 	language = languages.first(_id: language_id)
 	char_lang_idx = chardata.languages.indexOf(language.name)
 	if not checked and char_lang_idx > -1
 		remove chardata.languages, char_lang_idx
 	else
-		chardata.languages.push language.name
+		chardata.languages.push language.name
	save_character()
	set_links_part 1

edit.update_skills = (skill, subtype) ->
	class_skill = is_class_skill(skill, subtype)
	skill_text = $("input[id='skill_#{skill._id}_input']#{if subtype then "[subtype='#{subtype}']" else ""}")
	if skill_text.val() != "" and parseInt(skill_text.val()) > 0

				else
					$("#skill_#{skill._id}_input").val char_skill.ranks

recalc_edit_page =  ->
	chardata.name = $("#charname").val()
	curr_level = calc_level(chardata.xp)
	new_level = calc_level($("#xp").val())
