initial_filter for relate.js

Hi everyone

Is there a way I can set a default filter for the relate field in the javascript? All the examples I've seen for setting initial filter is for the PHP code only. 

Thanks