Added javascript functionality to add authors page