Removed some global vars. Added relative js/css