Added javascipt for buttons

Added javascript for buttons to call fnReloadAjax on motion and door sensor history routes.