This approach is done by Backbone js for the coding challenege