role filters for js and html