Keep single use JS where it's used