Put ed camera in seperate js file