Implemented following changes :

1. User document.ready only for initialization.
2. Move the json content to external file products.json
3. Gather the products in js using ajax request to products.json