remove duplicate JS framework code