consolidate js for ease of use temporarily