JS updated to account for galaxy width