clean pages javascript