wasn't executing the javascript properly in NewDay, fixed