changed some js files to get camera working