Vue Cannot Access Before Initialization Javascript