A filter implementation using asm.js