added js for the die