silly me forgot to fix the javascript night time code