append and remove overlay from js