work on #259 js backend
work on #259 getMethods
finish implementing #259 for JS backend