initial janky javascript