Remove unused javascript in dynamics.js