JMeter's While Controller accepts either a function or a variable.
Either evaluated function or variable should be changed to "false" somewhere, otherwise your test will run forever.
So you need to modify your expression to be:
${__javaScript("${name}"=="Bob",)}
See How to Use JMeter...