fixed a bug in ./bin/filter
added a variable_name to write_js