now using underscore.js
added the client-side product detection logic