added js code for showing parsed content