what are the goals of the js refactoring, why were you changing how the js was done? Just noticed it seemed messy and verbose, making it neater and shorter with same functionality? Or was there a problem you were trying to solve?