added js hook also