Improve coffeescript code for product listing.
Improve java code for product listing.