Fixes watch on js
Sets up filtering for request type