Daplug JavaScript APIs