rough implementation of camera CES with requirejs