Update capabilities.js

Fixed function name typo
Merge pull request #309 from Luke265/patch-1

Update capabilities.js