pass object id to JS