Remove weird javascript setup causing overlay confusion