Black/White filter in separated js file