added .id method to script to return anchor id in url