Get Current Route Javascript Function