parse docs out of javascript functions