added main.js to viewer.php