d&d javascript is so much bullshit

Change-Id: Ia4d761b2be25822a561c94c397dded02853e5b77