Thank you for writing in and per your question, I regret BBEdit's JavaScript function detection does not currently extend to classes.
We have however gotten a fair number of requests like yours for this capability, and adding such support is on our list for a future version (though I can't speculate on exact timing).
Meanwhile, I apologize for the inconvenience and please let me know if you have any further questions.