Fixes the proposal abstract word count javascript functions

fix #510