Started adding JS api for OpenBadge