Separated javavscript file for camera stuff