fixed viewer

included php to js site_root conversion