Added ajax for the lights