* removed duplicated code since current_site var will be available
 to all js files included in the template that has current_site
context variable