1. Do not mix the template html and javascript( see how placeholder text for the search box is localized
2. Follow same code formatting convention used else where