dmsoa java script