Update application2.js

modifications in the vector legend that will create a pop up menu when a user clicks on the rules in the legend. The user can input values, which will be validated and correspondingly the chartmap display and the rules will be updated.  (line 373-469)