changes ttt to js for filter