added stratifiedjs implementation