add useragent javascript to index.jade