fix bug for angular js,d3,jQuery,html, javascript code