updated camera JS and HTML hooks