#21: define reset() function
Merge pull request #22 from jeff1evesque/js_reset

#21: define reset() function