Fixed filter hook.

Accidently wasn't hooking into javascript.