Updated dalliance javascript