Remember previous cameras

Add a reset button for wiping the stored data.
Also some JavaScript fixes.