Copy FindFunctionParameterBoundaries from php to javascript