added knockout code to prune assets objects before being passed from ko.js via ajax to rails