try to remove js after it has loaded