Mozilla introduces JavaScript API as part of common payments interface