Fixed javascript for protege and adviser buttons.