JS compilation for products