Fixing a bug that would not properly clear out the fields and caused SQL errors when switching group bys
adding in the modified js
updated gitignore