Updated Javascripts in preparation for language selector