fixed js to play DP