Refactor to pass jslint.
Merge pull request #12 from amida-tech/mm-update_record

Refactor to pass jslint.