fixes #770 : Persisting last cell language in variable

Using the variable instead of storing the language in an array
Due to the above observations, this could just be `var curr_lang = window.localStorage["last_cell_lang"] || "R";`