clear layers properly
forgot the prototype
Merge pull request #7 from calvinmetcalf/clear-layers

fixes #6