javascript functions for every day