fixed a jslint issue
Cleaned the layer objects destroy functions, by not confusingly calling a reset() function from there

since we now have some kind of standard reset and destroy events for
objects.