Update capabilities.js

Fixed function name typo