fixes #770 : Persisting last cell language in variable

Using the variable instead of storing the language in an array
... and then this doesn't need to call a function