Fix js bugs, further mock out framework for video processing