Update dynamicThemeJS.js

removed unused functions