Begin javascript filter