Update amazing-filter.js

add missing semicolon and make less code