remove all remaining id/class dependencies in JS