Fixing CSS/JS files loading + JS variables scope issues.