add jquery library
updating light intensity via ajax
return json is now only result of last action
updating switch states via ajax
display error message on admin page