Re-added some code to javascript. fixes selectAll in add IE. closes #644