preview html changes

Feature: preview Stage URLs in a new tab. 
Consists of: Small HTML/JS changes. 
Note: JS should be moved from HTML into separate file in static.