Writing JQuery for root_path