Adding textLength block

@nanonoxi if we end up needing to do complex things, @hodgestar's idea sounds like a pretty cool of getting around putting all that complexity in each returned string of js code. Its up to you though. Happy to help you out with that.