Fixed slim javascript filter error