Added enterDocument method to View for more flexible DOM manipulation in its life cycle
Optimized book store example