Added draft of constant/function grabber to javascript

Signed-off-by: Andrew Miller <amiller@dappervision.com>