Merge pull request #197 from meganap/agut

checking in js fixes
checking in changes to field names in add_sample