[js] Get an options dictionary for custom markers instead of url (closes #5512977) [applied]