Update advanced.html

Bug fix on the call to textlength() function. Function does not exist anymore. User text.length.