add camera html5 pic capture support
move js to canvas