Added JS to implement fnGetFilteredData function