Add java scrpt for chart form