Standardize JavaScript watch path syntax