formatting
formatting
rm deprecated _layer.js
updated events to emit();