Added examples in javascript for intra and inter frame processing