Add javascript to activate buttons