Eric snippet height set

I added some js to set the editor height auto to how many lines there are (well up to 40, otherwise I read the viewport can freak out if a bunch of massive ones)

If there are conflicts do not merge. The code is like three lines here or there, I will just add it later