Set snippet size limits in django and pass to JS