Added Script

added php to fetch from db and pass to js.
added js to read and substitiute values in viewer.html