Add javascript and ajax for handling comments