Added missing var's to JS