moved js logic out of index.html and added remove day feature