Don't set remote_validators_prefix if root_path is not set

Fixes #513

It's sort of ugly, but it's better than checking it somehow on client side.

Also enabled all the js tests. Hope that's alright.