javascript for detailed grading minus keyboard submitting is done