Updated javascript to match previous commit