js : use dispatchMethod instead

minify
Merge branch 'master' into gh-pages