add log method to JS bridge API